package com.example.xutildemoproject.recevier;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.xuexiang.xutil.tip.ToastUtils;

public class NotifyBroadCastReceiver extends BroadcastReceiver {
    public static final String ACTION_SUBMIT = "com.example.xutildemoproject.recevier.action_submit";
    public static final String ACTION_CANCEL = "com.example.xutildemoproject.recevier.action_cancel";
    public static final String ACTION_REPLY = "com.example.xutildemoproject.recevier.action_reply";
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (ACTION_SUBMIT.equals(action)) {
            ToastUtils.toast("ACTION_SUBMIT");
        }else if(ACTION_CANCEL.equals(action)){
            ToastUtils.toast("ACTION_CANCEL");
        }else if(ACTION_REPLY.equals(action)){
            ToastUtils.toast("ACTION_REPLY");
        }
    }
}
